package leaf.cloud.common.core.tree;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName Tree
 * @Description
 * @Author YeZiHao
 * @Date 2023/4/4 18:26
 **/
@Data
public class Tree {
    private String id;
    private String parentId;
    private String label;
    private List<Tree> children = new ArrayList<>();

    public Tree() {
    }

    public Tree(String id, String parentId, String label) {
        this.id = id;
        this.parentId = parentId;
        this.label = label;
    }
}
